﻿

echo off
cls
set projectDirectory=%1
set destination=%2
set projectName=%3

echo copy: 
echo -
echo -

echo xcopy "%projectDirectory%bin\debug\*.dll" "%projectDirectory%StaticContent\bin\" /s /h /r /k /y 
xcopy "%projectDirectory%bin\debug\*.dll" "%projectDirectory%StaticContent\bin\" /s /h /r /k /y 
xcopy "%projectDirectory%bin\debug\*.pdb" "%destination%bin\" /s /h /r /k /y 
echo --------------------------------------done--------------------------------------------------------------
echo --------------------------------------------------------------------------------------------------------
echo --------------------------------------------------------------------------------------------------------
echo xcopy "%projectDirectory%StaticContent\*" "%destination%" /s /h /r /k /y 
xcopy "%projectDirectory%StaticContent\*" "%destination%" /s /h /r /k /y 
echo --------------------------------------done--------------------------------------------------------------
echo --------------------------------------------------------------------------------------------------------
echo --------------------------------------------------------------------------------------------------------
echo xcopy "%projectDirectory%..\sources\umbraco\presentation\bin\*.dll" "%destination%bin\" /s /h /r /k /y 
xcopy "%projectDirectory%..\sources\umbraco\presentation\bin\*.dll" "%destination%bin\" /s /h /r /k /y 
echo --------------------------------------done--------------------------------------------------------------
echo --------------------------------------------------------------------------------------------------------
echo --------------------------------------------------------------------------------------------------------
echo xcopy "%projectDirectory%..\sources\umbraco\presentation\bin\*.pdb" "%destination%bin\" /s /h /r /k /y 
xcopy "%projectDirectory%..\sources\umbraco\presentation\bin\*.pdb" "%destination%bin\" /s /h /r /k /y 
echo --------------------------------------done--------------------------------------------------------------
echo --------------------------------------------------------------------------------------------------------
echo --------------------------------------------------------------------------------------------------------
echo done.
echo - 
echo -
echo packaging....
IF "%projectName%"=="" (
	set projectName="package"
) else (   
	echo zip to [%projectName%]
)
echo %projectDirectory%createpackage.bat - %projectName%.zip - - - "%projectDirectory%"
 %projectDirectory%createpackage.bat - %projectName%.zip - - - "%projectDirectory%" "%projectName%"
 echo --------------------------------------done--------------------------------------------------------------
echo --------------------------------------------------------------------------------------------------------
echo --------------------------------------------------------------------------------------------------------